package org.example.day20240822.moiveex;
public class Main {
    public static void main(String[] args) {
        Movie movie1 = new ChildrenMovie("熊出没");
        Movie movie2 = new NewMovie("致青春");
        Movie movie3 = new CommonMovie("利刃出鞘");
        Movie movie4 = new ScareMovie("电锯惊魂");

        Chair chair = new Chair();

        Record record1 = new Record(movie1,3);
        Record record2 = new Record(movie2,1);
        Record record3 = new Record(movie3,4);
        Record record4 = new Record(movie2,5);
        Record record5 = new Record(movie1,3);
        Record record6 = new Record(movie2,3);
        Record record7 = new Record(movie4,6);
        Record record8 = new Record(movie2,5);
        Record record9 = new Record(chair,9);
        Record record10 = new Record(chair,8);

        Customer customer1 = new Customer("zhangsan");
        customer1.addRecord(record1);
        customer1.addRecord(record2);
        Customer customer2 = new Customer("lisi");
        customer2.addRecord(record3);
        customer2.addRecord(record4);
        Customer customer3 = new Customer("wangwu");
        customer3.addRecord(record5);
        customer3.addRecord(record6);
        customer3.addRecord(record10);
        Customer customer4 = new Customer("yucc");
        customer4.addRecord(record7);
        customer4.addRecord(record8);
        customer4.addRecord(record9);


        System.out.println(customer1.getBillInfo());
        System.out.println(customer2.getBillInfo());
        System.out.println(customer3.getBillInfo());
        System.out.println(customer4.getBillInfo());
    }
}
